package com.tripshare.logic.controller;

import com.tripshare.logic.common.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RequestMapping("/api")
@RestController
public class HomeController {

    private final static Logger logger = LoggerFactory.getLogger(HomeController.class);

    /**
     *
     *
     * @param body
     * @return
     */
    @RequestMapping("/index")
    public Result<String> index(@RequestBody(required = false) String body) {
        return Result.createSuccessResult("");
    }


}
